<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	String contextPath = request.getContextPath();
%>
<jsp:include page="/WEB-INF/jsp/common/fadeout.jsp"></jsp:include>
<script src="<%=basePath%>js/admin/deliver/deliver_order.js" type="text/javascript" charset="utf-8"></script>
<div id="local_bro" class="easyui-layout" data-options='fit:true'> 
	<div id="myorder_bor_layout" class="easyui-layout" data-options="fit:true" style="width:600px;height:400px;">   
<!--     <div data-options="region:'north',title:'查询条件',iconCls:'icon-find',split:false,collapsible:'false'" style="height:75px;text-align:center;padding:10px;"> -->
<!--     	<div> -->
<!--     		 <label for="name">订单编号:</label>    -->
<!--         	 <input  class="mybox" type="text" name="localOrderNo" />&nbsp;&nbsp;&nbsp;  -->
<!--         	 <label for="tm">从</label>    -->
<!--         	 <input class="easyui-datebox mybox" data-options="editable:false" name="localTmFrom" id="localTmFrom"> -->
<!--         	 <label for="tm">至</label>    -->
<!--         	 <input class="easyui-datebox mybox" data-options="editable:false" name="localTmTo" id="localTmTo">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -->
<!--          	 <a href="javascript:void(0)"  onclick="queryLocal()" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查找</a> -->
<!--          	 &nbsp;&nbsp; -->
<!--          	 <a href="javascript:void(0)" onclick="resetLocal()" class="easyui-linkbutton" data-options="iconCls:'icon-reload'">重置</a>   -->
<!--          </div>  -->
<!--     </div>    -->
    <div data-options="region:'center',title:'已发货订单',split:'false'" >
    	<table id="local_bor_datagrid">
    	</table>
    </div>
    </div>
    </div>
    <script>
$(function(){
	$("#local_bor_datagrid").datagrid({    
	    url:'admin/deliver/delivered.do', 
	    loadMsg:'数据加载中···',
	    fit:'true',
	    idField:'id',
	    pagination:true,
	    rownumbers:true,//行号  
	    checkOnSelect : true,
		selectOnCheck : true,
	    columns:[[
		{
			field : "id",
			hidden : true
		},     
	    {
			field:'customer_no',
			title:'客户编号',
			width:220,
			align:'center'
	    },    
	    {
	    	field:'order_no',
	    	title:'订单编号',
	    	width:220,
	    	align:'center'
	     },
	     {
	    	 field:'business_type',
	    	 title:'订单业务类型',
	    	 width:200,
	    	 align:'center'
	    },     
	    {
			field:'pro_no',
			title:'商品编码',
			width:240,
			align:'center',
	    },     
	    {
			field:'pro_name',
			title:'商品名称',
			width:160,
			align:'center',
	    },{
	    	field:'size',
	    	title:'尺寸',
	    	width:180,
	    	align:'center',
	        formatter: function(value,row,index){
	        	return row.length+"x"+row.width+"x"+row.height;
	    }},{
	    	 field:'weight',
	    	 title:'重量',
	    	 width:100,
	    	 align:'center'
	    },{
	    	 field:'pre_postage',
	    	 title:'预估邮费',
	    	 width:100,
	    	 align:'center'
	    },{
	    	 field:'pro_number',
	    	 title:'数量',
	    	 width:100,
	    	 align:'center'
	    },
	     {
	    	 field:'warehouse',
	    	 title:'有效仓库',
	    	 width:140,
	    	 align:'center'
	    },{
	    	 field:'location',
	    	 title:'区位',
	    	 width:140,
	    	 align:'center'
	    },{
	    	 field:'loc_no',
	    	 title:'库位号',
	    	 width:140,
	    	 align:'center'
	    },{
	    	 field:'dis_address',
	    	 title:'发货地址',
	    	 width:100,
	    	 align:'center',
	    	 formatter: function(value,row,index){
	   	        	return "<a href='javascript:void(0)' onclick=\"showAddress2('"+row['dis_address']+"')\">查看</a>";
	   	     }
	    },{
   	    	field:'create_tm',
   	    	title:'下单时间',
   	    	width:250,
   	    	align:'center',
   	        formatter: function(value,row,index){
   	        	return getTime(value);
   	        }
	     }
	    ]],
	    fitColumns:true
	});
});
function showAddress2(address){
	alert(address);
}
</script>